/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package validator.tubes.ai.i;

/**
 *
 * @author Mahdan Ahmad F A
 */
public class Kandidat {
    private int enlightenment;
    private int energywasted;
    private int maxperhari;
    private String prerequisite;
    private String jadwal;
    private int minStrength;
    private int minCharm;
    private int minBrain;
    
    
    public Kandidat() {
        enlightenment   = 0;
        energywasted    = 0;
        maxperhari      = 0;
        prerequisite    = "-";
        minStrength     = 0;
        minCharm        = 0;
        minBrain        = 0;
    }
    
    public Kandidat(int _enlightenment, int _energywasted, int _maxperhari, String _prerequisite, int _minStrenght, int _minCharm, int _minBrain){
        enlightenment   = _enlightenment;
        energywasted    = _energywasted;
        maxperhari      = _maxperhari;
        prerequisite    = _prerequisite;
        minStrength     = _minStrenght;
        minCharm        = _minCharm;
        minBrain        = _minBrain;
    } 
    
    public int getenlightenment() {
        return enlightenment;
    }
    
    public int getenergy() {
        return energywasted;
    }
    
    public int getmax() {
        return maxperhari;
    }
    
    public String getprerequisite(){
        return prerequisite;
    }
    
    public String getjadwal() {
        return jadwal;
    }
    
    public int getjmhpre() {
        if (prerequisite.equalsIgnoreCase("-")) {
            return 0;
        } else {
            return prerequisite.length() ;
        }
    }
    
    public int getMinStrenght() {
        return minStrength;
    }
    
    public int getMinCharm() {
        return minCharm;
    }
    
    public int getMinBrain() {
        return minBrain;
    }

    public void setenlightenment(int some){
        enlightenment   = some;
    }
    
    public void setenergy(int some){
        energywasted    = some;
    }
    
    public void setmax(int some){
        maxperhari      = some;
    }
    
    public void setprerequisite(String some){
        prerequisite    = some;
    }
    
    public void setjadwal(String some) {
        jadwal          = some;
    }
    
    public void setMinStrenght(int some) {
        minStrength     = some;
    }
    
    public void setMinCharm(int some) {
        minCharm        = some;
    }
    
    public void setMinBrain(int some) {
        minBrain        = some;
    }
    
    public void print() {
        System.out.println("Enlightenment   = " + enlightenment);
        System.out.println("Energy Wasted   = " + energywasted);
        System.out.println("Max per hari    = " + maxperhari);
        System.out.println("Prerequisite    = " + prerequisite);
        System.out.println("Jadwal          = " + jadwal);
        System.out.println("Min Strength    = " + minStrength);
        System.out.println("Min Charm       = " + minCharm);
        System.out.println("Min Brain       = " + minBrain);
        System.out.println();
    }
}
